﻿<UserControl 
             x:Class="DiscoveryLogic.UI.Layouts.Controls.BarChartCylindarAxis"
             xmlns="http://schemas.microsoft.com/client/2007" 
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            xmlns:sys="clr-namespace:System;assembly=mscorlib"
             Width="244" Height="388">

    <UserControl.Resources>
        <sys:String x:Key="Res_MinPayment">Min. Payment {0}</sys:String>
        <sys:String x:Key="Res_Interest">Interest {0}</sys:String>
    </UserControl.Resources>
    
    <Canvas x:Name="Root"
        >
        
  
  <Path Stretch="Fill" Stroke="#FF000000" StrokeEndLineCap="Round" StrokeStartLineCap="Round" StrokeThickness="1.5" Canvas.Left="0" Height="250"  Width="2" Data="M211,220 L211,521.23911" x:Name="Vertical" Canvas.Top="90.373" />
  
  <Path Stretch="Fill" Stroke="#FF000000" StrokeEndLineCap="Round" StrokeStartLineCap="Round" StrokeThickness="1.5" Canvas.Left="0" Canvas.Top="340.373" Width="140" Height="2" Data="M463,506 L178.22465,506" x:Name="Horizontal" />

   <Canvas x:Name="CylindarCanvas"></Canvas>

  <TextBlock x:Name="Interest" Height="11" FontSize="9" Text="^" TextWrapping="Wrap" Width="60.664" Canvas.Left="-58" Canvas.Top="260" FontFamily="Trebuchet MS"/>
  <Path x:Name="InterestLine" Stretch="Fill" Stroke="#FF000000" StrokeEndLineCap="Round" StrokeStartLineCap="Round" StrokeThickness="1.5" Canvas.Left="0" Canvas.Top="265" Width="8.008" Height="1" Data="M49,331.873 L58.333333,331.873"/>
  
  <TextBlock x:Name="MinimumPayment" Height="23.873" FontSize="9" Text="^" TextWrapping="Wrap" Width="60.664" Canvas.Left="-58" Canvas.Top="260" FontFamily="Trebuchet MS"/>
  <Path x:Name="MinimumPaymentLine" Stretch="Fill" Stroke="#FF000000" StrokeEndLineCap="Round" StrokeStartLineCap="Round" StrokeThickness="1.5" Canvas.Left="0" Canvas.Top="265" Width="8.008" Height="1" Data="M49,331.873 L58.333333,331.873"/>

  <TextBlock x:Name="SliderMin" Height="11" FontSize="10" Text="^" TextWrapping="Wrap" Width="53.664" Canvas.Left="-30" Canvas.Top="260" FontFamily="Trebuchet MS"/>  

  <TextBlock x:Name="SliderMax" Height="11" FontSize="10" Text="^" TextWrapping="Wrap" Width="53.664" Canvas.Left="-50" Canvas.Top="260" FontFamily="Trebuchet MS"/>
  <Path x:Name="SliderMaxLine" Stretch="Fill" Stroke="#FF000000" StrokeEndLineCap="Round" StrokeStartLineCap="Round" StrokeThickness="1.5" Canvas.Left="0" Canvas.Top="265" Width="8.008" Height="1" Data="M49,331.873 L58.333333,331.873"/>

  <TextBlock Canvas.Left="10" Canvas.Top="360" Width="140" Height="22" TextWrapping="Wrap" FontFamily="Trebuchet MS">
     <Run Text="Monthly Payment"></Run>
   </TextBlock>

  <Canvas x:Name="VerticalSlider" Canvas.Left="-7" Canvas.Top="120" Width="130" Height="17.336"
          MouseLeftButtonDown="CanvasMouseLeftButtonDown"
          MouseLeftButtonUp="CanvasMouseLeftButtonUp"
          MouseMove="CanvasMouseMove"
          MouseEnter="CanvasMouseEnter"
          MouseLeave="CanvasMouseLeave">

    <Path StrokeDashArray="5" Width="130" Stretch="Fill" Stroke="#FF1d62af" StrokeEndLineCap="Round" StrokeStartLineCap="Round" Data="M463,506 L178.22465,506" StrokeDashCap="Round" StrokeDashOffset="3" StrokeThickness="1.5" Height="2" Canvas.Left="0" Canvas.Top="9" />

    <TextBlock x:Name="MonthlyPayment" Height="23.873" FontSize="10" FontWeight="Bold" Foreground="#FF1D62AF" Text="^^^" TextWrapping="Wrap" Width="53.664" Canvas.Left="-50" Canvas.Top="3" FontFamily="Trebuchet MS"/>
    
    <Ellipse x:Name="SliderThumb" StrokeEndLineCap="Flat" StrokeStartLineCap="Flat" StrokeThickness="1" Width="17.336" Height="17.336" Canvas.Left="0" Canvas.Top="0">
      <Ellipse.Fill>
        <RadialGradientBrush GradientOrigin="0.354,0.399">
          <RadialGradientBrush.RelativeTransform>
            <TransformGroup>
              <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="1.118" ScaleY="1.118"/>
              <SkewTransform AngleX="0" AngleY="0" CenterX="0.5" CenterY="0.5"/>
              <RotateTransform Angle="0" CenterX="0.5" CenterY="0.5"/>
              <TranslateTransform X="-0.016" Y="-0.029"/>
            </TransformGroup>
          </RadialGradientBrush.RelativeTransform>
          <GradientStop Color="#FFFFFFFF" Offset="0"/>
          <GradientStop Color="#FF146581" Offset="0.827"/>
          <GradientStop Color="#FF8CB4C1" Offset="0.197"/>
          <GradientStop Color="#FF6EA0B1" Offset="1"/>
          <GradientStop Color="#FF1D6B86" Offset="0.567"/>
        </RadialGradientBrush>
      </Ellipse.Fill>
    </Ellipse>

  </Canvas>

</Canvas>
</UserControl>